//
//  QKLoopBanner.h
//  Pods
//
//  Created by ChiCo on 2018/6/2.
//

#import <UIKit/UIKit.h>

@class QKLoopBanner;

@protocol QKLoopBannerDelegate <NSObject>

@optional
- (void)loopBanner:(QKLoopBanner *)loopBanner didSelectedItem:(UIImageView *)imageView index:(NSUInteger)index;

@end

@protocol QKLoopBannerDataSource <NSObject>

@required
- (NSUInteger)numberOfImagesInLoopBanner:(QKLoopBanner *)loopBanner;
- (void)loopBanner:(QKLoopBanner *)loopBanner reloadImageView:(UIImageView *)imageView index:(NSUInteger)index;

@optional
- (void)loopBanner:(QKLoopBanner *)loopBanner chanedPage:(NSUInteger)page;
- (UIPageControl *)pageControlOfloopBanner:(QKLoopBanner *)loopBanner;

@end

@interface QKLoopBanner : UIView

- (void)reloadData;
- (instancetype)initWithFrame:(CGRect)frame loopSpace:(NSTimeInterval )loopSpace;

@property (nonatomic,assign) id <QKLoopBannerDelegate> delegate;
@property (nonatomic,assign) id <QKLoopBannerDataSource> dataSource;



@end
